<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta content="text/html; charset=UTF-8" http-equiv="content-type">
<title> 商品分类 </title>

<?php include VIEWS.'admin/style.html'?>

</head>

<body>

<?php include VIEWS.'admin/head.html'?>

<ul id="submenu">
	<li><a href='items.php'>商品列表</a></li>
	<li><a href='itemsedit.php?add=1'>新增商品</a></li>
	<li><a href='itemscats.php' class="current">商品分类</a></li>
    <li><a href='alert.php'>商品需求</a></li>
</ul>

<div id="body">

<form action="" method="post">
<table class="reportV2" cellpadding="5" width="90%" cellspacing="0">
<tr><td colspan="2" class="submit"><input type="submit" value="更新产品分类信息" style="font-weight:bold"></td></tr>
<tr><td width="10%" nowrap style="text-align:left"><b>上级分类</b></td><td style="text-align:left">
<select name="pid" style="width:200px">
<option value="0">- 无上级分类 -</option>
<?php foreach($cats['list'] as $v):?>
<option value=<?php echo $v['id']; if($data['pid']==$v['id']) echo ' selected'?>><?php echo $v['name']?></option>
<?php endforeach;?>
</select>
</td></tr>
<tr><td nowrap style="text-align:left"><b>分类名</b></td><td style="text-align:left"><input type="text" name="name" size="30" value="<?php echo $data['name']?>"></td></tr>
<tr><td nowrap style="text-align:left"><b>分类说明</b></td>
<td>
<?php
include ROOT.'scripts'.DS.'FCKeditor'.DS.'fckeditor.php';
$oFCKeditor = new FCKeditor('desc') ;
$oFCKeditor->ToolbarSet = 'Basic1';
$oFCKeditor->Weight = 640;
$oFCKeditor->Height = 480;
$oFCKeditor->BasePath = '/scripts/FCKeditor/';
$oFCKeditor->Value = $data['desc'] ;
$oFCKeditor->Create() ;
?>
</td></tr>
<tr><td colspan="2" class="submit"><input type="submit" value="更新产品分类信息" style="font-weight:bold"></td></tr>
</table>
</form>

<?php include VIEWS.'admin/runtime.html'?>

</div>

<script type="text/javascript">
Element.addClassName('am3', 'current');
</script>

</body>
</html>
